import java.util.Scanner;

public class demo03 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请问老师报数方式（1.顺序 2倒叙）");
        int f = sc.nextInt();
        if (f == 2) {
            for (int i = 100; i >= 1; i -= 1) {
                System.out.println(i);
            }
        } else {
            for (int i = 1; i <=100; i++) {
                System.out.println(i);
            }
        }
    }
}
